/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author carlossagastume
 */
public class Ingreso {
    int num;
    public boolean Numeros (String ingreso, int minimo, int maximo){
        try{
           num = Integer.parseInt(ingreso);
                   if (num > maximo){
                        return false;
                    }
                   else if (num < minimo){ 
                        return false;
                    }
                   else
                       return true;
        }
        catch (Exception e){
            return false;
        }

    }
    public int getnum(){
        return num;
    }
}
